﻿namespace DeviceFaultPushService.DeviceProcessManagement.CommunicationManagement.ModbusTcp.Models;

public class DeviceAddressModel
{
    /// <summary>
    /// 设备地址
    /// </summary>
    public string Ip { get; set; }

    /// <summary>
    /// 端口
    /// </summary>
    public short Port { get; set; } = 502;

    /// <summary>
    ///功能码 
    /// </summary>
    public int FunctionCode { get; set; }

    /// <summary>
    /// 波特率
    /// </summary>
    public int BaudRate { get; set; }

    /// <summary>
    /// 校验位
    /// </summary>
    public int CheckBit { get; set; }

    /// <summary>
    /// 数据位
    /// </summary>
    public int DataBits { get; set; }

    /// <summary>
    /// 停止位
    /// </summary>
    public int StopBit { get; set; }
}